<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="GENERATOR" content="WebCoder">
</head>
<body>



<?php

$format=$_POST['format'];
$time=$_POST['time'];

?>

<div align="center">
<?php include ("nav.php");?>
<form method="post" action="time.php">
<input type="text" name="time" value=""> Time&nbsp;&nbsp;&nbsp;&nbsp;<br>
<input type="text" name="format" value="<?php if (empty($format)) echo 'H:i  d-m'; else echo $format;?>"> Format<br>

<input type="submit" name="submit" value="get">
</form>



<?php echo  date($format, $time); ?>
</div>
</body>
</html>
